package com.jcloudsoft.springbootshardingsphere.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author wangfei
 * @date 2022-02-16 9:35
 */
@Data
@TableName("student")
public class Student {

    private static final long serialVersionUID = 358157380505039579L;

    /**
     * 用户id
     */
    @TableId(value = "userId",type = IdType.ID_WORKER)
    private Long userId;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 账号
     */
    private Long teacherId;


    /**
     * 年龄
     */
    private Integer age;

    /**
     * 创建时间
     */
    private Date createTime;
}
